import {request} from '../utils/util';
const defaultSettings = require('../config/defaultSettings')
const fieldUrl = {
  //分页查询
  queryViewPage:defaultSettings.appServer+'/IrrigationEmpFieldController/viewPage',
}
function queryTopEmpField(){
  //获取当前登录人
  let appInfo = getApp().globalData.appInfo
  let parameter ={}
  parameter["pageNo"]=1
  parameter["pageSize"]=5
  parameter["queryForm"]=[]
  parameter["orderColumns"]=[]
  parameter["queryForm"].push({field:"empNo",val:appInfo.empNo})
  parameter["orderColumns"].push({field:"c.create_time",val:"desc"})
  return request({url:fieldUrl.queryViewPage,data:parameter});
}

module.exports = {
  queryTopEmpField,fieldUrl
}